<!doctype html>
<html>
<head>
  <meta charset="utf-8"/>
  <title>后台管理系统</title>
  <meta name="author" content="DeathGhost" />
  <link rel="stylesheet" type="text/css" href="css/style.css" />
  <!--[if lt IE 9]>
  <script src="js/html5.js"></script>
  <![endif]-->
<script src="js/jquery.js"></script>
<script src="js/jquery.mCustomScrollbar.concat.min.js"></script>
<script>
  (function($){
    $(window).load(function(){

      $("a[rel='load-content']").click(function(e){
        e.preventDefault();
        var url=$(this).attr("href");
        $.get(url,function(data){
          $(".content .mCSB_container").append(data); //load new content inside .mCSB_container
          //scroll-to appended content
          $(".content").mCustomScrollbar("scrollTo","h2:last");
        });
      });

      $(".content").delegate("a[href='top']","click",function(e){
        e.preventDefault();
        $(".content").mCustomScrollbar("scrollTo",$(this).attr("href"));
      });

    });
  })(jQuery);
	</script>
	<style>
	li{
	width:50px;
	height:40px;
	border:1px
	border-bottom:1px solid #ccc;
	list-style:none;
	float: left;
	padding: 5px;
	font-size:20px;
				}
	</style>
</head>
<body>
  <section class="rt_wrap content mCustomScrollbar">
 <div class="rt_content">




     <section>
      <h2><strong style="color:grey;"></strong></h2>
      <div class="page_title">
       <h2 class="fl">广告列表</h2>
       <a href="sliderAdd" class="fr top_rt_btn">添加</a>
      </div>
      <table class="table">
       <tr>
        <th>广告组id</th>
        <th>广告组名称</th>
        <th>广告添加时间</th>
		<th>广告数量</th>
        <th>状态</th>
        <th>操作</th>
       </tr>
	   <?php foreach($arr as $v){?>
       <tr>
        <td><center><?php echo $v->slider_type_id?></center></td>
        <td><center><?php echo $v->slider_name?></center></td>
        <td><center><?php echo $v->slider_time?></center></td>
        <td><center><?php echo $v->slider_num?></center></td>
		<td><center>
		<?php if(($v->slider_click)==1){?>
		<a href="sliderClick?slider_type_id=<?php echo $v->slider_type_id ?>">已启用</a>
		<?php }else{?>
		<a href="sliderClick?slider_type_id=<?php echo $v->slider_type_id ?>"><font color='red'>禁用</font></a>
        <?php }?>
		</center></td>
        <td>
         <center><a href="#">查看详细广告</a><a href="#">删除</a></center>
        </td>
       </tr>
       <?php }?>
      </table>
       <a><?php echo $arr->render() ?></a>
     </section>


 </div>
</section>
</body>
<script type="text/javascript">
</script>
</html>


